package com.hp.ssmp.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hp.ssmp.entity.TComment;
import com.hp.ssmp.entity.dto.TCommentDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface CommentMapper extends BaseMapper<TComment> {
    public Page<TCommentDto> getCommentDtoByPage(Page<TCommentDto> page,
                                                  @Param(Constants.WRAPPER) QueryWrapper<TCommentDto> wrapper);

}
